home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form NameIn
- BorderStyle = 3 'Fixed Double
- Caption = "Input Name"
- ClientHeight = 1635
- ClientLeft = 3750
- ClientTop = 4815
- ClientWidth = 4590
- Height = 2040
- Left = 3690
- LinkMode = 1 'Source
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1635
- ScaleWidth = 4590
- Top = 4470
- Width = 4710
- Begin CommandButton CancelBut
- Cancel = -1 'True
- Caption = "Cancel"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 2475
- TabIndex = 5
- Top = 1050
- Width = 1335
- End
- Begin CommandButton OKBut
- Caption = "Enter"
- Default = -1 'True
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 825
- TabIndex = 4
- Top = 1050
- Width = 1335
- End
- Begin TextBox NumberInTxt
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 405
- Left = 1050
- TabIndex = 3
- Top = 525
- Width = 3375
- End
- Begin TextBox NameInTxt
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 390
- Left = 1050
- TabIndex = 2
- Top = 75
- Width = 3375
- End
- Begin Label Label2
- Caption = "Number"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 300
- Left = 75
- TabIndex = 1
- Top = 600
- Width = 870
- End
- Begin Label Label1
- Caption = "Name"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 705
- End
- Sub CancelBut_Click ()
- NameIn.Hide
- NameInTxt.Text = ""
- NumberInTxt.Text = ""
- End Sub
- Sub OKBut_Click ()
- 'Check for entered name and number
- If NameInTxt.Text = "" Then
- MsgBox "No Name specified"
- Exit Sub
- ElseIf NumberInTxt.Text = "" Then
- MsgBox "No Number specified"
- Exit Sub
- End If
- 'Adjust spacing of telephone numbers
- NumLen% = Len(NumberInTxt.Text)
- If NumLen% >= 3 And NumLen% < 6 Then
- NumTxt$ = " " + NumberInTxt.Text
- ElseIf NumLen% = 6 Then
- NumTxt$ = " " + NumberInTxt.Text
- Else NumTxt$ = NumberInTxt.Text
- End If
- 'Add spaces for correct trimming of NameNumTxt$
- NameNumTxt$ = NameInTxt.Text + " " + NumTxt$
- 'Clear the name and number
- NumberInTxt.Text = ""
- NameInTxt.Text = ""
- 'Delete the previous names and numbers with delete Sub Procedure
- DelNamIni
- 'Add the new name to the list box
- TeleList.TeleListBox.AddItem NameNumTxt$
- 'Then write new Names and Numbers from the listbox to ADIALER.INI with Sub Procedure
- UpdateNamIni
- End Sub
-